<?php
/**
 * Created by PhpStorm.
 * User: luojinyi
 * Date: 2018/3/10
 * Time: 下午7:20
 */

namespace App\Http\Transformers;


use League\Fractal\TransformerAbstract;
use Spatie\Permission\Models\Role;

class RoleTransformer extends TransformerAbstract
{
    public function transform(Role $role)
    {
        return $role->toArray();
    }
}
